﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace _395_2d
{
    public class NPCData : IComparable
    {
        public string Type;
        public Vector2 Position;
        public double SpawnTime;

        public int CompareTo(Object o)
        {
            if (o is NPCData)
            {
                NPCData comp = (NPCData)o;

                if (SpawnTime < comp.SpawnTime)
                    return 1;
                if (SpawnTime > comp.SpawnTime)
                    return -1;
            }
            return 0;
        }
    }
}
